-- GENERATED SPELL FOR [Greater Plainstrider] --


function spell0_3244(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3244', 606, 1)
end

function spell1_3244(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3244', 0, 1)
end

function spell2_3244(pUnit, Event) --@Dust Cloud,n/a--
pUnit:FullCastSpellOnTarget(50285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3244', 0, 1)
end

function spell3_3244(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3244', 0, 1)
end

function Sorts_3244(pUnit, Event)
local choix_sorts_3244 = math.random(0, 3)
if choix_sorts_3244 == 0 then
pUnit:RegisterEvent('spell0_3244', 1, 1)
end
if choix_sorts_3244 == 1 then
pUnit:RegisterEvent('spell1_3244', 1, 1)
end
if choix_sorts_3244 == 2 then
pUnit:RegisterEvent('spell2_3244', 1, 1)
end
if choix_sorts_3244 == 3 then
pUnit:RegisterEvent('spell3_3244', 1, 1)
end
end

function mob3244_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3244', math.random(1500, 3000), 1)
end

function mob3244_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3244_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3244_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3244, 1, 'mob3244_Action')
RegisterUnitEvent(3244, 2, 'mob3244_Leave')
RegisterUnitEvent(3244, 3, 'mob3244_Kill')
RegisterUnitEvent(3244, 4, 'mob3244_Die')
